package com.class06.controller;

import com.class06.pojo.Dog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/visit")
@ResponseBody
public class VisitDogController {
    @Autowired
    private Dog dog;
    @RequestMapping("/dog")
    public String visitDog(){
        return dog.toString();
    }
}
